//package com.kws.merchant.controller;
//
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.kws.common.core.domain.R;
//import com.kws.merchant.domain.ShippingAddress;
//import com.kws.merchant.domain.po.ShipAddressPo;
//import com.kws.merchant.service.ShippingAddressService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @author : zhangbenting
// * @date : 2024/11/4 19:09
// * @Version: 1.0
// */
//@RequestMapping("/shipAddress")
//@RestController
//@Api(value = "用户服务-收货地址管理", tags = "用户服务-收货地址管理")
//public class ShippingAddressController {
//    @Autowired
//    private ShippingAddressService shippingAddressService;
//
//    @ApiOperation("获取用户收货地址列表")
//    @PostMapping("/getShipAddressList")
//    @ApiOperationSupport(order = 1, includeParameters = {
//            "devicePo.pageSize",
//            "devicePo.totalPage"
//    })
//    public R<Page<ShippingAddress>> getShipAddressList(@RequestBody ShipAddressPo shipAddressPo) {
//        return R.ok(shippingAddressService.getShopCartList(shipAddressPo));
//    }
//
//    @ApiOperation("新增或修改用户收货地址")
//    @PostMapping("/saveOrUpdateShipAddress")
//    @ApiOperationSupport(order = 2, includeParameters = {
//            "shippingAddress.consignee",
//            "shippingAddress.consigneePhone",
//            "shippingAddress.addr",
//            "shippingAddress.addrLable"
//    })
//    public R<Boolean> saveOrUpdateShipAddress(@RequestBody ShippingAddress shippingAddress) {
//        return R.ok(shippingAddressService.saveOrUpdateShipAddress(shippingAddress));
//    }
//
//    @ApiOperation("删除用户收货地址")
//    @PostMapping("/removeShipAddress")
//    @ApiOperationSupport(order = 3, includeParameters = {
//            "shipAddressPo.ids"
//    })
//    public R<Boolean> removeShipAddress(@RequestBody ShipAddressPo shipAddressPo) {
//        return R.ok(shippingAddressService.removeByIds(shipAddressPo.getIds()));
//    }
//}
